package com.duan.controller;

import com.duan.pojo.Result;
import com.duan.service.RoleService;
import com.duan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author db
 * @version 1.0
 * @description RoleController
 * @since 2024/2/20
 */
@RestController
public class RoleController {

    @Autowired
    private UserService userService;

    @Autowired
    private RoleService roleService;

    @PostMapping("/deleteRole")
    public Result deleteRole(Integer roleId){
        roleService.deleteRole(roleId);
        return Result.success();
    }
}
